<template>
	<view class="box">
		<view class="btn-box">
			<view class="box-nav" @tap="toRouter('/pages/reg/index')">
				<image class="left-icon" src="../../static/zh.png" mode="aspectFill"></image>
				<view class="right">
					<view class="top">
						普通用户
					</view>
					<view class="bto">
						Regular User
					</view>
				</view>
			</view>
			<view class="box-nav" @tap="toRouter('/pages/staff/index')">
				<image class="left-icon" src="../../static/xh.png" mode="aspectFill"></image>
				<view class="right">
					<view class="top">
						物流员工
					</view>
					<view class="bto">
						Logistics staff
					</view>

				</view>
			</view>
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				title: 'Hello'
			}
		},
		onLoad() {

		},
		methods: {
			toRouter(utem) {
				uni.navigateTo({
					url: utem
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.box {
		width: 100%;
		min-height: 100vh;
		display: flex;
		justify-content: center;
		align-items: center;
		padding-top: 100rpx;

		.btn-box {
			width: 100%;
			height: 80vh;
			padding: 30rpx;
			box-sizing: border-box;

			.box-nav {
				width: 100%;
				height: 200rpx;
				box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
				border-radius: 20rpx;
				display: flex;
				align-items: center;
				padding: 0 20rpx;
				box-sizing: border-box;
				margin-bottom: 30rpx;
				background: #fff;

				.left-icon {
					width: 120rpx;
					height: 120rpx;
				}

				.right {
					width: 300rpx;
					height: 200rpx;
					margin-left: 40rpx;
					padding-top: 60rpx;
					box-sizing: border-box;

					.top {
						width: 100%;
						font-size: 36rpx;
						color: #333;
						font-weight: 600;
					}

					.bto {
						width: 100%;
						font-size: 28rpx;
						color: #969696;
						font-weight: 400;
					}

					&:hover {
						text-decoration: 1px solid #333;
					}
				}
			}

		}
	}
</style>